.contact-hero {
    width: 100%;
    padding: 100px 40px 80px;
    position: relative;
    background-color: #f7fdff;
    overflow: hidden;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../resources/ui/patterns/pattern_pigeons_black.png');
    background-size: 1200px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
}

.contact-hero-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #f7fdff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 0 50px rgba(247, 253, 255, 0.8),
        0 0 0 100px rgba(247, 253, 255, 0.6),
        0 0 0 150px rgba(247, 253, 255, 0.4),
        0 0 0 200px rgba(247, 253, 255, 0.2),
        0 0 0 250px rgba(247, 253, 255, 0.1);
}

.hero-decoration {
    height: 120px;
    width: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.contact-hero h1 {
    font-family: 'Lilita One', 'Times New Roman';
    font-size: 64px;
    color: #006ad5;
    letter-spacing: 2px;
}

.contact-hero p {
    font-size: 20px;
    color: #333333;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 700px;
}

.contact-container {
    margin: 100px auto 100px;
    width: 55%;
    padding: 60px;
    background-color: #f7fdff;
    border-radius: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    text-align: center;
}

.contact-title {
    font-family: 'Lilita One', 'Times New Roman';
    font-size: 56px;
    color: #0280ff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.contact-intro {
    font-size: 18px;
    color: #555;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Lilita One', sans-serif;
    color: #0280ff;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid #e0efff;
    background-color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0280ff;
    box-shadow: 0 0 0 4px rgba(2, 128, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    margin-top: 10px;
    padding: 15px 30px;
    background: #0280ff;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Lilita One', sans-serif;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(2, 128, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 128, 255, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
    border-left: 2px solid rgba(2, 128, 255, 0.1);
    padding-left: 40px;
}

.mini-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.info-item h3 {
    font-family: 'Lilita One', sans-serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.info-item a {
    color: #0280ff;
    font-size: 20px;
    font-weight: 600;
    margin-right: 5px;
}

.info-item img {
    width: 16px;
    height: 16px;
}

.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 75, 151, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: #f7fdff;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #e0efff;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 28px;
    cursor: pointer; color: #0280ff; font-weight: bold;
}

.popup-icon {
    font-size: 60px; margin-bottom: 20px;
}

#popup-title {
    font-family: 'Lilita One', cursive;
    font-size: 32px; color: #0280ff; margin-bottom: 15px;
}

#popup-message {
    font-family: 'Nunito', sans-serif;
    font-size: 18px; color: #555; margin-bottom: 30px;
}

#popup-ok-btn {
    padding: 12px 35px;
    background: #0280ff; color: white;
    border: none; border-radius: 50px;
    font-family: 'Lilita One', sans-serif;
    font-size: 20px; cursor: pointer;
    box-shadow: 0 5px 15px rgba(2, 128, 255, 0.3);
    transition: transform 0.2s;
}

#popup-ok-btn:hover {   
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        border-left: none;
        border-top: 2px solid rgba(2, 128, 255, 0.1);
        padding-left: 0;
        padding-top: 40px;
        text-align: center;
        align-items: center;
    }

    .contact-container {
        padding: 40px 25px;
        width: 78%;
        margin-top: 40px;
    }

    .contact-title {
        font-size: 42px;
    }
}

@media (max-width: 400px) {

    .contact-hero::after {
        background-size: 600px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .contact-hero p {
        font-size: 13px;
    }

    .contact-hero {
        padding: 60px 20px 50px;
    }

    .contact-container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 30px 20px;
    }

    .contact-container h1 {
        font-size: 27px;
    }

    .contact-container p {
        font-size: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 13px;
    }


    .contact-hero-content {
        width: 65%;
        gap: 20px;
        box-shadow:
            0 0 0 10px rgba(247, 253, 255, 0.8),
            0 0 0 20px rgba(247, 253, 255, 0.6),
            0 0 0 30px rgba(247, 253, 255, 0.4);
    }

    .submit-btn {
        font-size: 17px;
        letter-spacing: 0.1em;
    }

    .contact-container h3 {
        font-size: 23px;
    }

    .mini-socials a {
        font-size: 17px;
    }
}